package com.esionwong.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.esionwong.basic.entity.SysUser;
import com.esionwong.basic.param.sysUser.SysUserPageParam;
import com.esionwong.basic.vo.SysUserQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * 系统用户 Mapper 接口
 *
 * @author esionwong
 */
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据ID获取查询对象
     *
     * @param id 用户ID
     * @return 用户信息
     */
    SysUserQueryVo getSysUserById(Serializable id);

    /**
     * 获取分页对象
     *
     * @param page 分页
     * @param sysUserPageParam 分页参数
     * @return 分页数据
     */
    IPage<SysUserQueryVo> getSysUserPageList(@Param("page") Page page, @Param("param") SysUserPageParam sysUserPageParam);

}
